package cn.steel.service.impl;

import cn.steel.domain.entity.MaterialReportAudit;
import cn.steel.domain.entity.ProductOffShelfLog;
import cn.steel.mapper.MaterialReportAuditMapper;
import cn.steel.service.MaterialReportAuditService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class MaterialReportAuditServiceImpl implements MaterialReportAuditService {

    private final MaterialReportAuditMapper auditMapper;

    @Override
    public MaterialReportAudit findByProductId(Long productId) {
        return auditMapper.findByProductId(productId);
    }

    @Override
    public void updateAudit(MaterialReportAudit audit) {
        auditMapper.updateAudit(audit);
    }
    @Override
    public void insertAudit(MaterialReportAudit audit) {
        auditMapper.insertAudit(audit);
    }
    @Override
    public void insertOffShelfLog(ProductOffShelfLog log) {
        auditMapper.insertOffShelfLog(log);
    }
}